<template>
  <div class="empty-state">
    <div class="empty-icon">
      <i class="ri-image-line"></i>
    </div>
    <p class="empty-text">{{ message || '暂无相册' }}</p>
  </div>
</template>

<script setup>
defineProps({
  message: {
    type: String,
    default: '暂无相册',
  },
})

defineOptions({ name: 'EmptyState' })
</script>

<style lang="scss" scoped>
// 空状态样式
.empty-state {
  padding: 4rem 0;
  text-align: center;
  .empty-icon {
    margin-bottom: 1.5rem;
    i {
      font-size: 64px;
      color: var(--text-color-light, #e0e0e0);
    }
  }
  .empty-text {
    font-size: 1.125rem;
    color: var(--text-color-secondary, #aaa);
  }
}

// 暗色模式适配
:deep(html.dark) {
  .empty-text {
    color: #888;
  }
}
</style>
